package cn.macswelle.campusecurity.sdk.controller;

import cn.macswelle.campusecurity.sdk.DeviceInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public abstract class IndexController {
  @Autowired
  protected DeviceInfo info;

  protected ModelAndView getIndexModelAndWiew(){
    ModelAndView modelAndView = new ModelAndView("index");
    modelAndView.addObject("info", info);
    return modelAndView;
  }

  public abstract ModelAndView index();
}
